// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_l.p_b;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.nnee.p_img.cls_c;

public class cls_b
{

    public cls_b()
    {
    }

    public static void a()
    {
        if(a != null)
        {
            a.cancel();
            a = null;
        }
        if(b != null)
        {
            b.cancel();
            b = null;
        }
    }

    public static void a(Context context, int i)
    {
        a(context, context.getString(i));
    }

    public static void a(Context context, int i, int j, float f)
    {
        if(a == null)
            a = Toast.makeText(context, "", 0);
        a.setDuration(0);
        a.setText(i);
        int k = cls_c.a(context, f);
        a.setGravity(j, 0, k);
        a.show();
    }

    public static void a(Context context, String s)
    {
        if(a == null)
            a = Toast.makeText(context, "", 0);
        a.setText(s);
        a.setDuration(0);
        a.setGravity(81, 0, 50);
        a.show();
    }

    public static void a(Context context, String s, int i, int j)
    {
        if(a == null)
            a = Toast.makeText(context, "", 0);
        a.setText(s);
        a.setDuration(i);
        a.setGravity(j, 0, 0);
        a.show();
    }

    public static void a(Context context, String s, int i, int j, float f)
    {
        if(b == null)
            b = Toast.makeText(context, "", 0);
        b.setDuration(0);
        int k = cls_c.a(context, f);
        b.setGravity(j, 0, k);
        View view = LayoutInflater.from(context).inflate(i, null, false);
        ((TextView)view.findViewById(0x7f0d000d)).setText(s);
        b.setView(view);
        b.show();
    }

    public static void a(Toast toast)
    {
        if(toast != null)
        {
            toast.cancel();
            toast.show();
        }
    }

    public static void b(Toast toast)
    {
        if(toast != null)
            toast.cancel();
    }

    private static Toast a;
    private static Toast b;
}
